package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 资产对象 sys_asset
 * 
 * @author zlz
 * @date 2025-02-26
 */
public class SysAsset extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 资产ID */
    private Long assetId;

    /** 资产编号 */
    @Excel(name = "资产编号")
    private String assetNo;

    /** 资产名称 */
    @Excel(name = "资产名称")
    private String assetName;

    /** 分类ID */
    @Excel(name = "分类ID")
    private Long categoryId;

    /** 型号 */
    @Excel(name = "型号")
    private String model;

    /** 规格 */
    @Excel(name = "规格")
    private String specification;

    /** 制造商 */
    @Excel(name = "制造商")
    private String manufacturer;

    /** 购买日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "购买日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purchaseDate;

    /** 购买价格 */
    @Excel(name = "购买价格")
    private BigDecimal purchasePrice;

    /** 部门ID */
    @Excel(name = "部门ID")
    private Long deptId;

    /** 使用人ID */
    @Excel(name = "使用人ID")
    private Long userId;

    /** 位置 */
    @Excel(name = "位置")
    private String location;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 保修结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "保修结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date warrantyEndDate;

    public Integer getUseYear() {
        return useYear;
    }

    public void setUseYear(Integer useYear) {
        this.useYear = useYear;
    }

    /** 预计使用年限 */
    @Excel(name = "预计使用年限")
    private Integer useYear;

    public void setAssetId(Long assetId) 
    {
        this.assetId = assetId;
    }

    public Long getAssetId() 
    {
        return assetId;
    }
    public void setAssetNo(String assetNo) 
    {
        this.assetNo = assetNo;
    }

    public String getAssetNo() 
    {
        return assetNo;
    }
    public void setAssetName(String assetName) 
    {
        this.assetName = assetName;
    }

    public String getAssetName() 
    {
        return assetName;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }
    public void setSpecification(String specification) 
    {
        this.specification = specification;
    }

    public String getSpecification() 
    {
        return specification;
    }
    public void setManufacturer(String manufacturer) 
    {
        this.manufacturer = manufacturer;
    }

    public String getManufacturer() 
    {
        return manufacturer;
    }
    public void setPurchaseDate(Date purchaseDate) 
    {
        this.purchaseDate = purchaseDate;
    }

    public Date getPurchaseDate() 
    {
        return purchaseDate;
    }
    public void setPurchasePrice(BigDecimal purchasePrice) 
    {
        this.purchasePrice = purchasePrice;
    }

    public BigDecimal getPurchasePrice() 
    {
        return purchasePrice;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setWarrantyEndDate(Date warrantyEndDate) 
    {
        this.warrantyEndDate = warrantyEndDate;
    }

    public Date getWarrantyEndDate() 
    {
        return warrantyEndDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("assetId", getAssetId())
            .append("assetNo", getAssetNo())
            .append("assetName", getAssetName())
            .append("categoryId", getCategoryId())
            .append("model", getModel())
            .append("specification", getSpecification())
            .append("manufacturer", getManufacturer())
            .append("purchaseDate", getPurchaseDate())
            .append("purchasePrice", getPurchasePrice())
            .append("deptId", getDeptId())
            .append("userId", getUserId())
            .append("location", getLocation())
            .append("status", getStatus())
            .append("warrantyEndDate", getWarrantyEndDate())
                .append("useYear", getUseYear())
            .append("createTime", getCreateTime())
            .toString();
    }
}
